package com.example.mall.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("product_type")
public class ProductType {

    /**
     * 商品分类id
     */
    @JsonProperty(value = "id")
    private int id;

    /**
     * 商品分类名称
     */
    @JsonProperty(value = "type_name")
    private String typeName;

    /**
     * 逻辑删除 1：删除，2：正常
     */
    @JsonProperty(value = "is_delete")
    private String isDelete;

    /**
     * 创建时间
     */
    @JsonProperty(value = "create_time")
    private Date createTime;

    /**
     * 浏览量
     */
    @JsonProperty(value = "flow")
    private Integer flow;
}
